<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘分类(键盘敲难,月薪过o.o2亿)</title>
    <!-- 引入font文件 -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <!-- 引入mui样式 -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="./css/common.css">
    <!-- 首页样式 -->
    <link rel="stylesheet" href="./css/category.css">
</head>

<body>
    <!-- 头部 -->
    <header id="lt_header" class="mui-bar mui-bar-nav">
        <a href="./index.html" class="fa fa-arrow-left h-left"></a>
        <input type="text">
        <a href="javascript:;" class="fa fa-search h-right"></a>
    </header>

    <!-- 内容 -->
    <div class="lt_view">
        <div class="lt-left">
            
        </div>
        <div class="lt-right">
            
        </div>
    </div>


    <!-- 尾部 -->
    <div class="lt_footer">
        <a href="./index.html">
            <span class="fa fa-home"></span>
            <div class="link-name">首页</div>
        </a>
        <a href="javascript:;" class="active">
            <span class="fa fa-bars"></span>
            <div class="link-name">分类</div>
        </a>
        <a href="javascript:;">
            <span class="fa fa-shopping-cart"></span>
            <div class="link-name">购物车</div>
        </a>
        <a href="javascript:;">
            <span class="fa fa-user"></span>
            <div class="link-name">会员中心</div>
        </a>
    </div>

</body>
<!-- mui.js 不依赖其他 -->
<script src="./assets/mui/js/mui.js"></script>
<!-- 方便我们自己开发 zepto -->
<script src="./assets/zepto/zepto.js"></script>
<!-- 公共的js -->
<script src="./js/common.js"></script>
<!-- 自己的js index.js -->
<script src="./js/category.js"></script>
<!-- 引入模板文件 -->
<script src="./assets/arttemplate/template-web.js"></script>

<!-- 模板 -->
<script type="text/template" id="leftTmp"> 
    <ul>
        {{each arr value index}}
        {{if index==0}}
        <li data-id="{{value.id}}" class="active">{{value.categoryName}}</li>
        {{/if}}

        {{if index!=0}}
        <li data-id="{{value.id}}">{{value.categoryName}}</li>
        {{/if}}
         {{/each}}
    </ul>
</script>

<script type="text/template" id="rightTmp">
    <ul>
         {{each arr value index}}
        <li>
            <a href="javascript:;">
                <img src="{{value.brandLogo}}" alt="">
                <div class="brandName">{{value.brandName}}</div>
            </a>
        </li>
         {{/each}}
    </ul>
</script>

</html>